// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import $ from 'jquery'
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.min'

Vue.config.productionTip = false
Vue.prototype.isShowNav = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  $,
  router,
  components: { App },
  template: '<App/>'
})
/**
 * 连接mysql
 */
// import { createRequire } from 'module'
// const require = createRequire(import.meta.url)
// const mysql = require('mysql')
// var sql = "select id,name, iconPath from myweb.my_components"
// var connection = mysql.createConnection({
//   host: '119.23.49.179',
//   user: 'root',
//   password: '111111',
//   database: 'myweb'
// })
// connection.connect()
// connection.query(sql, function (error, results, fields) {
//   if (error) throw error
//   console.log(results, 'sssss')
// })
